//
//  GestureRecognizer.m
//  PortmanTouch
//
//  Created by cclaan on 11/4/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "GestureRecognizer.h"


@implementation GestureRecognizer


-(void) recognizeGesture:(TouchGesture*) gesture {

	float * points = [gesture getPoints];
	int num = [gesture numPoints];
	
	/*
	for ( int i=0; i<num*2; i+=2 ) {
		
		float x = points[i];
		float y = points[i+1];
		
	}
	*/
	
	float x1 = points[0];
	float x2 = points[(num-1)*2];
	
	if ( x1 > x2 ) {
		NSLog(@"Single Touch Gesture going LEFT!");
	} else {
		NSLog(@"Single Touch Gesture going RIGHT!");
	}
	
	
}

-(void) recognizeGestures:(NSArray*) gestures {
	
}




@end
